home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Toolbox / EditTextCdev / CEditCdev.make < prev    next >
Encoding:
Text File  |  1994-11-18  |  1.6 KB  |  56 lines  |  [TEXT/MPS ]

  1. #
  2. #    Macintosh Developer Technical Support
  3. #
  4. #    EditText Sample Control Panel Device
  5. #
  6. #    EditCdev
  7. #
  8. #    EditCdev.make    -    Make Source
  9. #
  10. #    Copyright © 1988 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    1.00                8/88
  14. #                1.10                6/92
  15. #
  16. #    Components:    EditCdev.p            August 1, 1988
  17. #                EditCdev.c            August 1, 1988
  18. #                EditCdev.r            August 1, 1988
  19. #                PEditCdev.make        August 1, 1988
  20. #                CEditCdev.make        August 1, 1988
  21. #                TCEditCdev.π        June 12, 1992
  22. #                TCEditCdev.π.rsrc    June 12, 1992
  23. #
  24. #    EditCdev is a sample Control Panel device (cdev) that 
  25. #    demonstrates the usage of the edit-related messages.  
  26. #    EditCdev demonstrates how to implement an editText item
  27. #    in a Control Panel Device.  It utilizes the new undo, cut, copy,
  28. #    paste, and delete messages that are sent to cdevs in
  29. #    response to user menu selections.
  30. #
  31. #    It is comprised of two editText items that can be edited 
  32. #    and moved between via the mouse or tab key.
  33. #
  34. # For MPW 2.0 we use the following line so that the the complete interfaces are there:
  35. #COptions = -d MPW2
  36. #
  37. # For MPW 3.0 and later:
  38. COptions = -d MPW3 -r    # define MPW3, turn on strict prototyping (-r option)
  39.  
  40. SrcName            =    EditCdev
  41. Lang            =    C
  42. CdevName        =    {Lang}{SrcName}
  43.  
  44. Objs            =    {SrcName}.{Lang}.o ∂
  45.                     "{Libraries}"Interface.o
  46.  
  47. {CdevName}        ƒƒ    {Objs} {CdevName}.make
  48.         Link -o {Targ} -rt cdev=-4064 -m MAIN {Objs} && ∂
  49.             Setfile {CdevName} -a B && ∂
  50.                 Duplicate -y {CdevName} "{SystemFolder}Control Panels:"
  51.  
  52. {CdevName}        ƒƒ    {SrcName}.r {CdevName}.make
  53.         Rez -o {Targ} {SrcName}.r -t cdev -c hack -rd -append && ∂
  54.             Setfile {CdevName} -a B && ∂
  55.                 Duplicate -y {CdevName} "{SystemFolder}Control Panels:"
  56.